<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/pub/include.jsp" %>
<link href="<%=request.getContextPath() %>/css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jedate/jedate.min.js"></script>
<div class="header">
<h1 class="logo">贝易后台管理系统</h1>
<div class="nav">
<ul>
<c:choose>
<c:when test="${not empty m}">
	<c:choose>
		<c:when test="${m=='user'}"><li class="bj">首页</li></c:when>
		<c:otherwise><li><a href="<c:url value="/user/index?m=user"/>">首页</a></li></c:otherwise>
	</c:choose>
    <c:choose>
        <c:when test="${m=='clazz'}"><li class="bj">课程中心</li></c:when>
        <c:otherwise><li><a href="<c:url value="/clazz/index?m=clazz"/>">课程中心</a></li></c:otherwise>
    </c:choose>
	<c:choose>
		<c:when test="${m=='ads'}"><li class="bj">运营管理</li></c:when>
		<c:otherwise><li><a href="<c:url value="/ads/index?m=ads"/>">运营管理</a></li></c:otherwise>
	</c:choose>

	<c:choose>
		<c:when test="${m=='source'}"><li class="bj">资源管理</li></c:when>
		<c:otherwise><li><a href="<c:url value="/source/index?m=source"/>">资源管理</a></li></c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${m=='topic'}"><li class="bj">用户交流</li></c:when>
		<c:otherwise><li><a href="<c:url value="/topic/index?m=topic"/>">用户交流</a></li></c:otherwise>
	</c:choose>
</c:when>
<c:otherwise>
<script type="text/javascript">
var url = document.URL;
document.write('<li><a href="<c:url value="/admin/index"/>">首页</a></li>');

if(url.indexOf("/clazz")!=-1){
    document.write('<li class="bj">课程中心</li>');
}
else{
    document.write('<li><a href="<c:url value="/admin/index?m=clazz"/>">课程中心</a></li>');
}
if(url.indexOf("/ads")!=-1){
	document.write('<li class="bj">运营管理</li>');
}
else{
	document.write('<li><a href="<c:url value="/admin/index?m=ads"/>">运营管理</a></li>');
}

if(url.indexOf("/source")!=-1){
	document.write('<li class="bj">资源管理</li>');
}
else{
	document.write('<li><a href="<c:url value="/admin/index?m=source"/>">资源管理</a></li>');
}
if(url.indexOf("/topic")!=-1){
	document.write('<li class="bj">用户交流</li>');
}
else{
	document.write('<li><a href="<c:url value="/admin/index?m=topic"/>">用户交流</a></li>');
}
</script>
</c:otherwise>
</c:choose>
</ul>
</div>
<div class="clear"></div>
<div class="king">
    <p></p>
<%--<p>我的信息：管理供用信息</p>--%>
</div>
</div>